package com.mida.bms.report.api;

import com.mida.bms.report.entity.DocStructReport;
import com.mida.bms.report.vo.PatientInfoParameterVo;
import com.mida.tool.common.result.ListResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.DependsOn;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 快速写入
 */
@DependsOn("loadFromDatabasePropertyConfig")
@FeignClient(name = "docFastWriteApi",url = "bms.report.feign.url")
public interface DocFastWriteApi {

    /**
     * getDocStructTemplateList
     * @param vo
     * @return
     */
    @PostMapping(value = "/docFastWrite/getDocStructTemplateList",consumes = {"application/json"})
    @ResponseBody
    public ListResult getDocStructTemplateList(@RequestBody PatientInfoParameterVo vo);


    /**
     * getHistoryReportList
     * @param vo
     * @return
     */
    @PostMapping(value = "/docFastWrite/getHistoryReportList",consumes = {"application/json"})
    @ResponseBody
    public ListResult getHistoryReportList(@RequestBody PatientInfoParameterVo vo);


    /**
     * getHistoryReportList
     * @param vo
     * @return
     */
    @PostMapping(value = "/docFastWrite/gainHistoryReportList",consumes = {"application/json"})
    @ResponseBody
    public ListResult<List<DocStructReport>> gainHistoryReportList(@RequestBody PatientInfoParameterVo vo);
}

